/*
 * @Author: LVGRAPE
 * @LastEditors: LVGRAPE
 */
#ifndef PWM3901_POLLING_H
#define PWM3901_POLLING_H

#include "drv_pin.h"
#include "driver_pmw3901mb.h"

#ifdef __cplusplus
extern "C" {
#endif

int pwm3901_dev_init(void);
void pwm3901_update_1ms(void);
float pmw3901mb_raw_to_cm(int16_t raw, float height_m);
extern pmw3901mb_motion_t pmw3901_motion;
#ifdef __cplusplus
}
#endif

#endif
